package com.linwen.javase.desgin_pattern.action.observer;

/**
 * @ClassName ConcreteSubject
 * @Description
 * @Author lin
 * @Date 2022/6/29 上午1:57
 * @Version V1.0
 */
//具体目标
class ConcreteSubject extends Subject {
    public void notifyObserver() {
        System.out.println("具体目标发生改变...");
        System.out.println("--------------");
        for (Object obs : observers) {
            ((Observer) obs).response();
        }
    }
}